using System;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;

[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class Service : System.Web.Services.WebService
{
    public Service () {

        //Uncomment the following line if using designed components 
        //InitializeComponent(); 
    }

    [WebMethod]
    public bool MasterCardExists(byte[] encryptedCardNo)
    {
        return MasterCard.CheckExists(encryptedCardNo);
    }

    [WebMethod]
    public bool VisaCardExists(byte[] encryptedCardNo)
    {
        return VisaCard.CheckExists(encryptedCardNo);
    }

    [WebMethod]
    public bool MasterCardExpired(byte[] encryptedCardNo)
    {
        return MasterCard.CheckExpired(encryptedCardNo);
    }

    [WebMethod]
    public bool VisaCardExpired(byte[] encryptedCardNo)
    {
        return VisaCard.CheckExpired(encryptedCardNo);
    }
}
